package com.sdx.console.ncode.dao;

import com.sdx.console.ncode.entity.RightNcode;
import org.beetl.sql.core.annotatoin.SqlResource;
import org.beetl.sql.core.engine.PageQuery;
import org.beetl.sql.core.mapper.BaseMapper;

import java.util.List;

/**
 * N码 Dao
 */
@SqlResource("ncode.rightncode")
public interface RightNcodeDao extends BaseMapper<RightNcode>{
    public PageQuery<RightNcode> queryByCondition(PageQuery query);
    public void batchDelRightNcodeByIds( List<String> ids,RightNcode rightNcode);
    public int getRightCountByCode(String ncode);
    public int insertNcode(RightNcode rightNcode);
    List<RightNcode> queryByExoprt(RightNcode rightNcode, List<String> ids);
    void updateRightNcodeByIds(List<String> ids,RightNcode rightNcode,Integer provinceId);

    void updateRightNcodeByBatchId(Integer batchId, RightNcode rightNcode,Integer provinceId);
}
